﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MAT
{
    public partial class frmFindAsset : Form
    {
        Controllers.ctrFindAsset _ctrFindAsset = new Controllers.ctrFindAsset();
        public frmFindAsset()
        {
            InitializeComponent();
            _ctrFindAsset.FrmFindAsset = this;
        }

        private void btnFindAsset_Click(object sender, EventArgs e)
        {
            _ctrFindAsset.btnFindAsset_Click();
        }

        private void frmFindAsset_Load(object sender, EventArgs e)
        {
            _ctrFindAsset.frmFind_Load ();
        }


        private void textBox1_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                //_frmFind.button1_Click();
                _ctrFindAsset.btnFindAsset_Click();
            }
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            _ctrFindAsset.btnClose_click();
        }

        

    }
}
